package com.cloudcc.mobile.presenter;

import com.cloudcc.mobile.dao.ContactEngine;
import com.cloudcc.mobile.dao.impl.ContactEngineImpl;
import com.cloudcc.mobile.event.CoworkerEventList.CoworkerListEvent;

public class ContactsPresenter extends BasePresenter {

	private ContactEngine mEngine;
	public ContactsPresenter() {
		super();
		mEngine = new ContactEngineImpl();
	}

	
	
	/** 获取同事列表 支持分页
	 * @param page
	 */
	public void getContactList(int page){
		CoworkerListEvent event =new CoworkerListEvent();
		mEngine.getContactList(page, 800, event);
	}
	
	/**
	 * 获得 下属列表
	 */
	public void getSubStaffList(){
		CoworkerListEvent event =new CoworkerListEvent();
		mEngine.getSubContacts(event);
	}
	

	
}
